package com.outstanding.ifml.bo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;




/**
 * 数据库的对象
 * @author chenzhixuan
 *
 */
public class Field implements Serializable{
	public static final String MOCK="mock";
	public static final String DESC="desc";
	public static final String MUST="must";
	//值类型
	public static final String VTYPE="type";
	//字段类型
	public static final String FIELDTYPE="fieldType";
	
	public static final String REQUESTHEADER="requestHeader";
	public static final String RESPONSEHEADER="responseHeader";
	public static final String REQUESTBODY="requestBody";
	public static final String RESPONSEBODY="responseBody";
	
	
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8364643432873063417L;
	
    private String name;
    private String value;
    private FieldType fieldType; 
    
    private String desc;
    private String valueType; //值类型
    private String mock;    //mock值
    private Boolean must;  //必输项
    private List<Field> childFields = new ArrayList<Field>();  
    
    
	
	public List<Field> getChildFields() {
		return childFields;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public FieldType getFieldType() {
		return fieldType;
	}
	public void setFieldType(FieldType fieldType) {
		this.fieldType = fieldType;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getValueType() {
		return valueType;
	}
	public void setValueType(String valueType) {
		this.valueType = valueType;
	}
	public String getMock() {
		return mock;
	}
	public void setMock(String mock) {
		this.mock = mock;
	}
	public Boolean getMust() {
		return must;
	}
	public void setMust(Boolean must) {
		this.must = must;
	}
	public void addChildField(Field field){
		this.childFields.add(field);
	}

}
